package day9;

import java.util.Scanner;

public class t8 {
    public static void main(String[] args) {
        String str = getstr();
        StringBuilder str1 =new StringBuilder(str);
        String Str = str1.reverse().toString();
        boolean b=str.equals(Str);
        if(b) System.out.println("是对称字符串");
        else System.out.println("不是对称字符串");
    }
    public static String getstr(){
        Scanner sc =new Scanner(System.in);
        System.out.print("请输入一个字符串：");
        String str=sc.next();
        return str;
    }

}
